package com.climber.s_mybatis.services;

import com.climber.s_mybatis.mapper.BookMapper;
import com.climber.s_mybatis.pojo.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookService {
    @Autowired
    BookMapper bookMapper;

    public List<Book> findAllBook(){
        return bookMapper.getAllBook();
    }

}
